package com.haoniu.module.domain.database;

import com.haoniu.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

    
/**
 * 充值表 user_wallet_in
 *
 * @author houyijun
 * @date 2019-01-25
 */
public class UserWalletIn extends BaseEntity{
	private static final long serialVersionUID = 1L;

	/**  */
	private Integer id;
	/** 订单号 */
	private String orderCode;
	/** 用户ID */
	private Integer userId;
	/** 充值金额 */
	private BigDecimal money;
	/** 状态 0 未充值 1 充值成功 2 充值失败 */
	private Integer status;
	/** 描述 */
	private String description;
	/** 充值方式(1.支付宝 2.银行卡 3.平台充值) */
	private Integer payType;
	/** 支付宝账号 */
	private String alipay;
	/** 创建时间 */
	private Date createTime;
	/** 更新时间 */
	private Date updateTime;
	/** 删除标识 0-未删除 2-已删除 */
	private Integer delFlag;
	private String createBy;

	private String nickName;
	private String phone;
	private User user;

	@Override
	public String getCreateBy() {
		return createBy;
	}

	@Override
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return id;
	}
	public void setOrderCode(String orderCode){
		this.orderCode = orderCode;
	}

	public String getOrderCode(){
		return orderCode;
	}
	public void setUserId(Integer userId){
		this.userId = userId;
	}

	public Integer getUserId(){
		return userId;
	}
	public void setMoney(BigDecimal money){
		this.money = money;
	}

	public BigDecimal getMoney(){
		return money;
	}
	public void setStatus(Integer status){
		this.status = status;
	}

	public Integer getStatus(){
		return status;
	}
	public void setDescription(String description){
		this.description = description;
	}

	public String getDescription(){
		return description;
	}
	public void setPayType(Integer payType){
		this.payType = payType;
	}

	public Integer getPayType(){
		return payType;
	}
	public void setAlipay(String alipay){
		this.alipay = alipay;
	}

	public String getAlipay(){
		return alipay;
	}
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return createTime;
	}
	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}

	public Date getUpdateTime(){
		return updateTime;
	}
	public void setDelFlag(Integer delFlag){
		this.delFlag = delFlag;
	}

	public Integer getDelFlag(){
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderCode", getOrderCode())
            .append("userId", getUserId())
            .append("money", getMoney())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("payType", getPayType())
            .append("alipay", getAlipay())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
